package org.tissou.client.DonneesAAfficher;

import com.google.gwt.user.client.rpc.IsSerializable;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.HTML;

/**
 * Created by IntelliJ IDEA.
 * User: Claire
 * Date: 03/03/2009
 * Time: 21:12:32
 * To change this template use File | Settings | File Templates.
 */
public class Element_Pourcent implements IsSerializable,Element {
  int pourcent;

  public Element_Pourcent() {
  }

  public int getPourcent() {
    return pourcent;
  }

  public Element_Pourcent(int pourcent) {

    this.pourcent = pourcent;
  }

  public Widget ConvertirEnWidget() {
    return new HTML(String.valueOf(pourcent) + " %");
  }

  public Element clone() {
    return new Element_Pourcent();
  }

  public void setCaracteristique(int pourcentage) {

      pourcent = pourcentage;
    }
}